package com.example.wechattakeaway.service;


import com.example.wechattakeaway.form.orderform.InsertOrderDetailForm;
import com.example.wechattakeaway.vo.ResultVO;

import java.util.List;

public interface OrderDetailService {

    /*
    新增一条订单详情
    @param OrderDetail
    @return null
     */
    ResultVO InsertOrderDetail(InsertOrderDetailForm insertOrderDetailForm);

    /*
    删除一条订单详情
    @param orderDetailId
    @return null
     */
    ResultVO DeleteOrderDetail(Integer orderDetailId);

    /*
    查询一个订单详情
    @param orderDetailId
    @return OrderDetail
     */
    ResultVO SelectOrderDetailById(Integer orderDetailId);

    /*
    根据一个订单id查询所有订单详情
    @param orderId
    @return list
     */
    ResultVO SelectOrderDetailByOrder(Integer pageNum,Integer orderId);

}
